package com.sg.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 组织架构系统对接表
 *
 * @author xxx
 */
@Data
@Accessors(chain = true)
@TableName("oms_org_person_source_data")  // 1-3-18对接员工源数据表
public class PersonSourceData implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 对接员工源数据ID
     */
    @TableId(value = "person_source_data_id", type = IdType.ASSIGN_UUID)
    @NotNull(message = "personSourceDataId不能为空")
    private String personSourceDataId;

    /**
     * 身份人员编号
     */
    @TableField(value = "role_member_code")
    @NotNull(message = "身份人员编号不能为空")
    @Schema(description = "身份人员编号")
    private String roleMemberCode;

    /**
     * 真实姓名
     */
    @TableField(value = "id_card_name")
    @NotNull(message = "真实姓名不能为空")
    @Schema(description = "真实姓名")
    private String idCardName;

    /**
     * 绑定手机
     */
    @TableField(value = "phone")
    @NotNull(message = "绑定手机不能为空")
    @Schema(description = "绑定手机")
    private String phone;

    /**
     * 用户性别 MALE:男 FEMALE:女
     */
    @TableField(value = "sex")
    @Schema(description = "用户性别")
    private String sex;

    /**
     * 职务性质 PRINCIPAL:正职 DEPUTY:副职 MEMBER:成员
     */
    @TableField(value = "position_type")
    @Schema(description = "职务性质")
    private String positionType;

    /**
     * 职务名称
     */
    @TableField(value = "position_id_name")
    @NotNull(message = "职务名称不能为空")
    @Schema(description = "职务名称")
    private String positionIdName;

    /**
     * 是否主岗 TRUE:是 FALSE:否
     */
    @TableField(value = "is_main_induction")
    @Schema(description = "是否主岗")
    private String isMainInduction;

    /**
     * 是否主管 TRUE:是 FALSE:否
     */
    @TableField(value = "is_director")
    @Schema(description = "是否主管")
    private String isDirector;

    /**
     * 部门编号
     */
    @TableField(value = "dept_number")
    @Schema(description = "部门编号")
    private String deptNumber;

    /**
     * 部门名称（中文）
     */
    @TableField(value = "dept_name")
    @Schema(description = "部门名称（中文）")
    private String deptName;

    /**
     * 就职开始时间
     */
    @TableField(value = "induction_start_time")
    @Schema(description = "就职开始时间")
    private Date inductionStartTime;

    /**
     * 排序
     */
    @TableField(value = "order_number")
    @Schema(description = "排序")
    private Long orderNumber;

    /**
     * 数据是否完整 TRUE:是 FALSE:否
     */
    @TableField(value = "data_is_complete")
    @NotNull(message = "数据是否完整不能为空")
    @Schema(description = "数据是否完整")
    private String dataIsComplete;

    /**
     * 关联项目ID
     */
    @TableField(value = "project_id")
    @NotNull(message = "关联项目ID不能为空")
    @Schema(description = "关联项目ID")
    private String projectId;

    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @TableField(value = "subject_life_cycle")
    @NotNull(message = "主体生命周期不能为空")
    @Schema(description = "主体生命周期")
    private String subjectLifeCycle;

    /**
     * 操作人就职记录ID
     */
    @TableField(value = "operation_induction_id")
    @NotNull(message = "操作人就职记录ID不能为空")
    @Schema(description = "操作人就职记录ID")
    private String operationInductionId;

    /**
     * 创建人就职记录ID
     */
    @TableField(value = "create_induction_id")
    @NotNull(message = "创建人就职记录ID不能为空")
    @Schema(description = "创建人就职记录ID")
    private String createInductionId;

    /**
     * 发布人就职记录ID
     */
    @TableField(value = "release_induction_id")
    @Schema(description = "发布人就职记录ID")
    private String releaseInductionId;

    /**
     * 操作时间
     */
    @TableField(value = "operate_time")
    @NotNull(message = "操作时间不能为空")
    @Schema(description = "操作时间")
    private Date operateTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @NotNull(message = "创建时间不能为空")
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 发布时间
     */
    @TableField(value = "release_time")
    @Schema(description = "发布时间")
    private Date releaseTime;

    /**
     * 是否作废 TRUE:是 FALSE:否
     */
    @TableField(value = "is_valid")
    @NotNull(message = "是否作废不能为空")
    @Schema(description = "是否作废")
    private String isValid;

    /**
     * 创建于空间ID
     */
    @TableField(value = "space_id")
    @NotNull(message = "创建于空间ID不能为空")
    @Schema(description = "创建于空间ID")
    private String spaceId;

    /**
     * 创建于联盟应用ID
     */
    @TableField(value = "app_id")
    @NotNull(message = "创建于联盟应用ID不能为空")
    @Schema(description = "创建于联盟应用ID")
    private String appId;
}
